package com.jinxin.platform.cdfaceacs.task;

import com.jinxin.platform.cdfaceacs.service.GaUploadService;

import java.util.concurrent.Callable;

/**
 * All rights Reserved, Designed By www.beonelot.com
 *
 * @version: V1.0
 * @Copyright: www.beonelot.com Inc. All rights reserved.
 * @Description：
 * @Date: 2021-01-06
 * @Author: Lingnan
 **/
public class IncomingTask implements Callable<ResultEntity> {
    private GaUploadService gaUploadService;
    private final String type;
    private final String json;

    public IncomingTask(GaUploadService gaUploadService,String type, String json) {
        this.gaUploadService = gaUploadService;
        this.type = type;
        this.json = json;
    }

    @Override
    public ResultEntity call() throws Exception {
        return gaUploadService.incoming(this.type, this.json);
    }
}
